package com.spark.lola.entity.sup;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.common.constant.BooleanConstant;
import com.spark.lola.support.common.constant.CommonConstant;
import com.spark.lola.support.mybatis.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 供应商收款信息
 * </p>
 *
 * @author dengyejun
 * @since 2020-04-24
 */
@TableName("sup_bank_info")
@ApiModel(value="供应商收款信息", description="")
public class BankInfo extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;
    public BankInfo(){}
    @ApiModelProperty(value = "供应商id 创建选填")
    private Long supplierId;

    @TableField(exist = false)
    private String supplierName;
    @ApiModelProperty(value = "银行名称")
    private String bankName;

    @ApiModelProperty(value = "开户行")
    private String openingBank;

    @ApiModelProperty(value = "开户名")
    private String accountName;

    @ApiModelProperty(value = "卡号")
    private String cardNumber;

    @ApiModelProperty(value = "备注 选填")
    private String remark;

    @ApiModelProperty(value = "状态 选填")
    private String used= CommonConstant.Y;

    @TableField(fill = FieldFill.INSERT)
    private String creator;
    @TableField(fill = FieldFill.UPDATE)
    private String updator;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "默认")
    private Integer auto = BooleanConstant.FALSE;

    public Integer getAuto() {
        return auto;
    }

    public void setAuto(Integer auto) {
        this.auto = auto;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdator() {
        return updator;
    }

    public void setUpdator(String updator) {
        this.updator = updator;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }
    
    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }
    
    public String getOpeningBank() {
        return openingBank;
    }

    public void setOpeningBank(String openingBank) {
        this.openingBank = openingBank;
    }
    
    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }
    
    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }
    
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public String getUsed() {
        return used;
    }

    public void setUsed(String used) {
        this.used = used;
    }
    
    @Override
    public String toString() {
        return "BankInfo{" +
            "supplierId=" + supplierId +
            ", bankName=" + bankName +
            ", openingBank=" + openingBank +
            ", accountName=" + accountName +
            ", cardNumber=" + cardNumber +
            ", remark=" + remark +
            ", used=" + used +
            "}";
    }
}
